home *** CD-ROM | disk | FTP | other *** search
- global imageArray, gKeepCopying, wherearefiles, imageArrayNames, theText, theresthetext, whereistext, thetextfiles, theresAnImage, gListOfSelections, gCount, gPosters
-
- on baCopyFilesProgress vFolderName, vDoc, vImagesFolder
- whereToCopy = baSysFolder("desktop")
- Ok = baCreateFolder(whereToCopy & vFolderName)
- register(xtra("ProgressCopy"), "zmqtdnhmr68j")
- if the platform contains "Mac" then
- thetextcopy = whereToCopy & vFolderName & ":"
- Ok = baCreateFolder(thetextcopy & vDoc)
- wherearefiles = the moviePath & vImagesFolder & ":"
- whereistext = the moviePath & vDoc & ":"
- copyFolder = whereToCopy & vFolderName & ":"
- copyfoldertext = thetextcopy & vDoc & ":"
- else
- thetextcopy = whereToCopy & vFolderName & "\"
- Ok = baCreateFolder(thetextcopy & "\" & vDoc)
- wherearefiles = the moviePath & vImagesFolder & "\"
- whereistext = the moviePath & vDoc & "\"
- copyFolder = whereToCopy & vFolderName & "\"
- copyfoldertext = thetextcopy & vDoc & "\"
- end if
- if gListOfSelections.count > 0 then
- repeat with x = 1 to gListOfSelections.count
- oneFile = new(xtra("progresscopy"), 1, 100, 100)
- vNum = gListOfSelections[x]
- vlargeName = member("largeNames").text.line[vNum]
- copyFile(oneFile, wherearefiles & vlargeName, copyFolder & vlargeName, 1, 1, 1)
- put errorString(oneFile) into field "error"
- end repeat
- copyFile(oneFile, whereistext & "captions.doc", copyfoldertext & "captions", 1, 1, 1)
- end if
- go("timed")
- end
-